package com.sebiotec.login.net;

import com.allen.library.APi.BaseApi;
import com.sebiotec.login.model.TestResponse;
import com.sebiotec.login.model.get.ResponseLogin;
import com.sebiotec.login.model.get.UpdateApp;

import java.util.Map;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.HeaderMap;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface LoginApi    {

    //获取登录
    @GET("/api/Login")
    Observable<ResponseLogin> Login(@HeaderMap Map<String, Object> headers,@Query("DeviceType") int DeviceType);



   //获取版本信息
   @GET("/Upgrade/{Version}")
   Observable<UpdateApp> UpdateApp(@Query("Version") String Version);



    @Headers({"Content-Type: application/json","Accept: application/json"})
    @POST("/api/ShoppingLog/AddAsync")
    Observable<TestResponse>  test(@Body RequestBody body);

}
